package org.example.juniortest;

import java.math.BigDecimal;

public class Student {
    private String name;
    private Integer age;
    private BigDecimal height;
    private BigDecimal weight;
    private String classroom;

    public Student(String name, Integer age, BigDecimal height, BigDecimal weight, String classroom) {
        this.name = name;
        this.age = age;
        this.height = height;
        this.weight = weight;
        this.classroom = classroom;
    }

    public Student() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public BigDecimal getHeight() {
        return height;
    }

    public void setHeight(BigDecimal height) {
        this.height = height;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String content(){
        StringBuilder stringBuilder=new StringBuilder();
        stringBuilder.append(name).append(",")
                .append(age).append(",")
                .append(height).append(",")
                .append(weight).append(",")
                .append(classroom);
        return stringBuilder.toString();
    }

}
